package com.tz.service.course.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tz.bean.Course;
import com.tz.bean.TzParams;
import com.tz.dao.course.ICourseMapper;
import com.tz.service.course.ICourseService;

@Service
public class CourseServiceImpl implements ICourseService{
	
	@Autowired
	private ICourseMapper courseMapper;
	
	@Override
	public List<Course> listCourses(TzParams params) {
		return courseMapper.listCourses(params);
	}
	
	@Override
	public int count(TzParams params){
		return courseMapper.count(params);
	}

	@Override
	public Course save(TzParams params) {
		return courseMapper.save(params);
	}

	@Override
	public int delete(TzParams params) {
		return courseMapper.delete(params);
	}

	@Override
	public int update(Course course) {
		return courseMapper.update(course);
	}
	
}
